package com.liuke.question1.pojo;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Auther: 刘科
 * @Date: 2021/06/12/17:10
 * @Description:
 */
public class Result {
    /**
     * 请求总量
     */
    private Integer requestTotal;

    /**
     * 请求最频繁的10个请求以及对应的请求数量
     */
    private List<UriKeyMap> frequentRequest;

    /**
     * GET请求的请求量
     */
    private Integer getMethodCount;

    /**
     * POST请求的请求量
     */
    private Integer postMethodCount;

    /**
     * 各个类别的URI
     */
    private Map<String, Set<String>> classifyURI;

    public Result() {
    }

    public Integer getRequestTotal() {
        return requestTotal;
    }

    public void setRequestTotal(Integer requestTotal) {
        this.requestTotal = requestTotal;
    }

    public List<UriKeyMap> getFrequentRequest() {
        return frequentRequest;
    }

    public void setFrequentRequest(List<UriKeyMap> frequentRequest) {
        this.frequentRequest = frequentRequest;
    }

    public Integer getGetMethodCount() {
        return getMethodCount;
    }

    public void setGetMethodCount(Integer getMethodCount) {
        this.getMethodCount = getMethodCount;
    }

    public Integer getPostMethodCount() {
        return postMethodCount;
    }

    public void setPostMethodCount(Integer postMethodCount) {
        this.postMethodCount = postMethodCount;
    }

    public Map<String, Set<String>> getClassifyURI() {
        return classifyURI;
    }

    public void setClassifyURI(Map<String, Set<String>> classifyURI) {
        this.classifyURI = classifyURI;
    }

    @Override
    public String toString() {
        return "Result{" +
                "requestTotal=" + requestTotal +
                ", frequentRequest=" + frequentRequest +
                ", getMethodCount=" + getMethodCount +
                ", postMethodCount=" + postMethodCount +
                ", classifyURI=" + classifyURI +
                '}';
    }
}
